package com.sixi.GeoTransfer;

import static com.sixi.GeoTransfer.Constants.CHINA_CITY_FILE_PATH;

import java.io.File;

public class Test {

	public static void main(String[] args) {
//		ITransferGeoInfo ig = new TransferGeoInfo();
		
		String path = ClassLoader.getSystemResource(CHINA_CITY_FILE_PATH).getPath();
		
		System.out.println(path);
		
		File f = new File(path);
		System.out.println(f.exists());
		String path2 = ClassLoader.getSystemResource(CHINA_CITY_FILE_PATH).getFile();
		
		System.out.println(path2);
		File f2 = new File(path2);
		System.out.println(f2.exists());
//		Point2D.Double coordinate = new Point2D.Double(102.72, 25.05);
//		String returnJson = ig.getCityInfoFromCoordinate(coordinate, "0871");
		
		String relativelyPath=System.getProperty("user.dir");
		
		System.out.println(relativelyPath);
		
		
		
//		String returnJson2 = ig.getCityInfoFromCoordinate(coordinate, "0871");
//		
//		System.out.println(returnJson2);
		
	}

}
